package cn.edu.swu.self1

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.Toast

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val tv_one:View = findViewById(R.id.tv_one)
        val bt1: Button = findViewById(R.id.bt1)
        bt1.setOnClickListener{
            Toast.makeText(this, "click bt1", Toast.LENGTH_LONG).show()
        }
    }
}